/*
 * http://code.google.com/p/anttesttools/
 * JYAML简单使用
 * site: http://jyaml.sourceforge.net/
 * jar: jyaml-*.jar
 */
package anttesttools.yaml;

import java.io.File;
import java.util.Map;
import org.ho.yaml.Yaml;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author anttesttools
 */
public class ExYaml
{

    private static Logger log = LoggerFactory.getLogger(ExYaml.class);

    public static void main(String[] args)
    {
        try
        {
            Map ymlMap = (Map) Yaml.load(new File("F:\\My Documents\\NetBeansProjects\\anttesttools\\src\\anttesttools/yaml/ex.yml"));
            for (Object o : ymlMap.keySet())
            {
                log.debug("{}", ymlMap.get(o));
            }
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }

    }
}
